package com.lhg.service;

import com.lhg.entity.Dimension;
import com.lhg.entity.Rate;
import com.lhg.mapper.MemberMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberService {
    @Autowired
    private MemberMapper memberMapper;

    public void insertDimension(Dimension dimension) {
        memberMapper.insertDimension(dimension);
    }

    public List<Dimension> selectDimension(Integer UserId) {
        return memberMapper.selectDimension(UserId);
    }

    public Dimension selectById(Integer editId) {
        return memberMapper.selectById(editId);
    }

    public void deleteById(Integer editId) {
        memberMapper.deleteById(editId);
    }

    public List<Rate> selectByInfoId(Integer infoId) {
        return memberMapper.selectByInfoId(infoId);
    }

    public void updateByIdName(Integer infoId, String name, Integer value) {
        memberMapper.updateByIdName(infoId, name, value);
    }

    public void insertByIdName(Integer infoId, String name, Integer value) {
        memberMapper.insertByIdName(infoId,name,value);
    }
}
